home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / usr / sybase / include4_6 / sybfront.h < prev    next >
C/C++ Source or Header  |  1993-04-22  |  3KB  |  146 lines

  1. /*
  2.  *    sybfront.h 77.1 11/11/91
  3.  *
  4.  *    Sybase DB-LIBRARY Version 4.0
  5.  *    Confidential Property of Sybase, Inc.
  6.  *    (c) Copyright Sybase, Inc. 1988, 1990
  7.  *    All rights reserved
  8.  *
  9.  *
  10.  * Use, duplication, or disclosure by the Government
  11.  * is subject to restrictions as set forth in subparagraph (c) (1) (ii)
  12.  * of the Rights in Technical Data and Computer Software clause
  13.  * at DFARS 52.227-7013. Sybase, Inc. 6475 Christie Avenue, Emeryville,
  14.  * CA 94608.
  15.  *
  16.  */
  17.  
  18. #ifndef    __sybfront__
  19. #define    __sybfront__
  20.  
  21. #include <sybtypes.h>        /* DB-Library data types will be based on
  22.                 ** the types in the common lib include file.
  23.                 */
  24.  
  25. #define MAC    0        /* Mike, why this line ? */
  26.  
  27. #define KR_C_COMPILE    1
  28. #define ANSI_C_COMPILE    2
  29. #define    CPP_COMPILE    3
  30.  
  31. /*
  32. **    Languages
  33. */
  34.  
  35. #define    SYB_C        0
  36. #define    SYB_FORTRAN    1
  37. #define    SYB_COBOL    2
  38. #define SYB_ADA        3
  39. #define    SYB_VERDIX_ADA    4
  40. #define SYB_PASCAL    5
  41. #define SYB_HYPERTALK    6
  42. #define SYB_PL1        7
  43.  
  44. /*
  45. **    Return types
  46. */
  47.  
  48. typedef int        RETCODE;    /* SUCCEED or FAIL */
  49. typedef    int        STATUS;        /* OK or condition code */
  50.  
  51. #if    (MAC)
  52. #define    STDEXIT        0
  53. #define    ERREXIT        -1
  54. #endif    /* (MAC) */
  55.  
  56. /* Some machines don't support void pointers. */
  57. #if (SUNOS3 || AIX)
  58. typedef char    *DBVOIDPTR;
  59. #else
  60. typedef void    *DBVOIDPTR;
  61. #endif
  62.  
  63. #ifndef    NULL
  64. #define NULL        0
  65. #endif    /* NULL */
  66.  
  67. #ifndef FALSE
  68. #define FALSE        0
  69. #endif
  70.  
  71. #ifndef TRUE
  72. #define TRUE        1
  73. #endif
  74.  
  75. #define    SUCCEED        1
  76. #define    FAIL        0
  77.  
  78. /*
  79. **    Defines for exit
  80. */
  81.  
  82. #ifndef STDEXIT
  83. #if !VMS
  84. #define STDEXIT         0
  85. #else
  86. #define STDEXIT         1
  87. #endif /* !VMS */
  88. #endif  /*  ifndef STDEXIT  */
  89.  
  90. #ifndef ERREXIT
  91. #if !VMS
  92. #define ERREXIT         -1
  93. #else
  94. #include <stsdef.h>
  95. #define ERREXIT STS$K_SEVERE | STS$M_INHIB_MSG
  96. #endif /* !VMS */
  97. #endif  /*  ifndef ERREXIT  */
  98.  
  99. /*
  100. **     Defines for the "answer" in interrupt pop-ups 
  101. */
  102.  
  103. #define INT_EXIT    0
  104. #define INT_CONTINUE    1
  105. #define INT_CANCEL    2
  106. #define INT_TIMEOUT    3
  107.  
  108.  
  109. /* DataServer variable typedefs - These are now based on the 
  110. ** definitions contained in common library 
  111. */
  112. #define    DBTINYINT    COM_TINYINT    /* DataServer 1 byte integer */
  113. #define DBSMALLINT    COM_SMALLINT    /* DataServer 2 byte integer */
  114. #define    DBINT        COM_INT        /* DataServer 4 byte integer */
  115. #define    DBCHAR        COM_CHAR    /* DataServer char type */
  116. #define    DBBINARY    COM_BINARY    /* DataServer binary type */
  117. #define DBBIT        COM_BIT        /* DataServer bit type */
  118. #define DBDATETIME    COM_DATETIME    /* DataServer datetime type */    
  119. #define DBDATETIME4    COM_DATETIME4    /* DataServer 4-byte datetime type */
  120. #define DBMONEY        COM_MONEY    /* DataServer money type */
  121. #define DBMONEY4    COM_MONEY4    /* DataServer 4-byte money type */
  122. #define    DBFLT8        COM_FLT8    /* DataServer float type */
  123. #define DBREAL        COM_REAL    /* 4-byte float type */
  124.  
  125. #define BYTE        COM_BYTE
  126. #define DBBOOL        COM_BOOL     /* Less likely to collide than "BOOL" */
  127.  
  128. /*    
  129. **    Typedefs
  130. */
  131.  
  132. #ifndef    _OBJC_OBJC_H_            /* jjg 2/23/93 to prevent collision with objc.h */
  133. typedef unsigned char    BOOL;        /* So older programs won't break yet */
  134. #endif    _OBJC_OBJC_H_
  135. typedef BYTE        *POINTER;
  136.  
  137. /*
  138. **    Pointers to functions returning ...
  139. */
  140.  
  141. typedef    int        (*INTFUNCPTR)();
  142. typedef    void        (*VOIDFUNCPTR)();
  143. typedef    DBBOOL        (*BOOLFUNCPTR)();
  144.  
  145. #endif    /*__sybfront__*/
  146.